import request from '@/utils/index'

// 用户登录接口
export const reqUserLogin = ({ account, password }) => {
    return request({
        url: '/login',
        method: 'POST',
        data : {
            account,
            password
        }
    })
}

// 获取用户喜欢的商品列表接口
export const reqLikeListAPI = ({ limit = 4 }) => {
    return request({
        url: '/goods/relevant',
        method: 'GET',
        params: {
            limit
        }
    })
}